package router

import (
	"center-platform/internal/controller/v1/user"
	"center-platform/middleware"
	"github.com/gin-gonic/gin"
)

func RegisterUserRouter(r *gin.Engine) {
	var group = r.Group("/v1/user")
	group.POST("login", user.Login)
	group.POST("register", user.Register)
	group.Use(middleware.AuthMiddleware())
	group.GET("info", user.Info)
	group.PUT("update", user.Update)
}
